import requests from '@/utils/request';

// 查询
export const reqGetClassroomList = (params) =>
  requests.post('/admin/classroom/query', params);
// 获取院系专业树
export const reqQueryDepAndMaJorAndClassroom = () =>
  requests.get('/admin/classroom/queryDepAndMaJorAndClassroom');
// 班级新增
export const reqBatchAddClassroom = (params) =>
  requests.post('/admin/classroom/add', params);
// 班级编辑
export const reqEditClassroom = (params) =>
  requests.put('/admin/classroom/edit', params);
// 班级删除--批量
export const reqBatchDelClassroom = (params) =>
  requests.post('/admin/classroom/remove', params);
// 检测班级名称是否重复
export const reqCheckClassroomNameIsRepeat = (params) =>
  requests.get(`/admin/classroom/queryForCheckRepeatName/${params}`);
